﻿
@model KRM.Core.tblRDMQuestionnaire
@{
    ViewBag.Title = "PRE-RDM NON FAC CHECKLIST";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
    var orderref = ViewBag.Orderref;
}

<div style="padding: 20px; font-size: 12px">
    <form action="/rdm/questionnairenonfac" method="POST" class="questionairenonfac">
        @Html.Partial("Partial/_MessageResult")
        <input type="hidden" name="id" value="@Model.ID"/>
        <input type="hidden" value="@Model.OrderItemID" name="OrderItemID"/>
        <input type="hidden" value="@orderref" name="Orderref"/>
        <div class="row-fluid">
            <p>To add an RDM for a : @ViewBag.ProductOption please fill in the following check list and Pre-RDM Questionnaire:</p>
        </div>
        <div class="row-fluid">
            <div class="span1">1</div>
            <div class="span3">Reason</div>
            <div class="span5">
                @Html.DropDownList("ReasonID", null, "--Please select--", new { required = "required" })
            </div>
        </div>
        <div class="row-fluid">
            <div class="span1">2</div>
            <div class="span3">Reason detail</div>
            <div class="span5">
                @Html.DropDownList("ReasonDetailID", null, "--Please select--", new { required = "required" })
            </div>
        </div>
        <div class="row-fluid">
            <div class="span1">3</div>
            <div class="span11">
                <input type="checkbox" name="IsCheckedAllParts" value="True" class="pull-left" style="margin-right: 7px" required = "required" @(Model.IsCheckedAllParts == true ? "checked=checked" : "")/>
                I have asked the customer  to check through all parts
            </div>
        </div>
        <div class="row-fluid">
            <div class="span1"></div>
            <div class="span11">
                <div class="span2">Comment</div>
                <div class="span10">
                    <textarea style="width: 96%" name="CheckedAllPartsComments">@Model.CheckedAllPartsComments</textarea>
                </div>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span1">4</div>
            <div class="span11">
                <input type="checkbox" name="IsAskedConditionOfTheBox" value="True" class="pull-left" style="margin-right: 7px" required = "required" @(Model.IsAskedConditionOfTheBox == true ? "checked=checked" : "")/>
                Asked the customers regarding the condition of the Box
            </div>
        </div>
        <div class="row-fluid">
            <div class="span1"></div>
            <div class="span11">
                <div class="span2">Comment</div>
                <div class="span10">
                    <textarea style="width: 96%" name="AskedConditionOfTheBoxComments">@Model.AskedConditionOfTheBoxComments</textarea>
                </div>
            </div>
        </div>

        <div class="row-fluid">
            <div class="span1">5</div>
            <div class="span11">
                <input type="checkbox" name="IsCheckedPOD" value="True" class="pull-left" style="margin-right: 7px" required = "required" @(Model.IsCheckedPOD == true ? "checked=checked" : "")/>
                I haved checked POD
            </div>
        </div>
        <div class="row-fluid">
            <div class="span1"></div>
            <div class="span11">
                <div class="span2"></div>
                <div class="span10">
                    @Html.DropDownList("SignatureID", null, "--Please select--", new { required = "required" })
                </div>
            </div>
        </div>

        <div class="row-fluid">
            <div class="span1">6</div>
            <div class="span11">
                <input type="checkbox" name="IsCheckedPhotoOrPicture" value="True" class="pull-left" style="margin-right: 7px" required = "required" @(Model.IsCheckedPhotoOrPicture == true ? "checked=checked" : "")/>
                I have checked a photos / pictures
            </div>
        </div>
        <div class="row-fluid">
            <div class="span1"></div>
            <div class="span11">
                <div class="span2">Comment</div>
                <div class="span10">
                    <textarea style="width: 96%" name="PhotosOrPictureComments">@Model.PhotosOrPictureComments</textarea>
                </div>
            </div>
        </div>

        <div class="row-fluid">
            <div class="span1">7</div>
            <div class="span11">
                Other comment:
            </div>
        </div>
        <div class="row-fluid">
            <div class="span1"></div>
            <div class="span11">
                <textarea style="width: 96%" name="OtherComments">@Model.OtherComments</textarea>
            </div>
        </div>
        <div class="row-fluid">
            <div class="span12 text-center" style="margin-top: 10px">
                <input type="button" class="btn  btn-primary issueresolve" value="Issue Resolvel" />
                <a href="/rdm/addrdm?questionnaireid=@Model.ID" class="btn  btn-primary" style="margin: 0 20px">Generate RDM</a>
                <input type="button" value="Save" class="btn btn-primary savequestionnairenonfac" />
                <a class="btn btn-primary" href="/rdm/viewquestionnaire?orderref=@orderref" style="margin-left: 20px">Back to list</a>
            </div>
        </div>
    </form>
</div>
